.

UserLimit.ConditionLogic

The type of logic used error used for AxisDemand, AxisState, CommandPosition, CommandVelocity, ActualPosition, ActualVelocity, PositionError, Monitor, SqNodeAnalogIn, SqNodeAnalogOut, and Custom condition types.

Version History

Introduced in MPX 2.0.

Type

Mpx.UserLimitLogic

Index

 
Index Type Description
Int32 The index of the condition whose trigger logic is being accessed. Valid index values include 0 and 1.

Common Exceptions

 
Error Occurs when...
UserLimitCannotConfigure

Attempting to set ConditionLogic and the user limit is not in a ‘being configured’ state.

To resolve the problem, call UserLimit.ConfigurationBegin to begin configuring the user limit.

Visual Basic

Syntax

Property ConditionLogic As Mpx.UserLimitLogic(index As Int32)

Sample Code

 
Dim userLimit As Mpx.UserLimit = controller.Axis(0).UserLimit(0)

userLimit.ConfigurationReset() ' Reset user limit configuration before configuring it
userLimit.ConfigurationBegin() ' Begin configuration

' Configure user limit
userLimit.TriggerType = Mpx.UserLimitTrigger.SingleCondition
userLimit.ConditionType(0) = Mpx.UserLimitConditionType.SqNodeAnalogOut
userLimit.ConditionNode(0) = controller.Axis(0).NodeNumber
userLimit.ConditionChannel(0) = 0
userLimit.ConditionLogic(0) = Mpx.UserLimitLogic.AbsLe
userLimit.ConditionValue(0) = 2048

userLimit.GenerateEvent = True
userLimit.Action = Mpx.Action.None

userLimit.ConfigurationEnd() ' Writes configuration to the controller


Sample Application

 

C#

Syntax

Mpx.UserLimitLogic[] ConditionLogic;

Sample Code

 
Mpx.UserLimit userLimit = controller.Axis[0].UserLimit[0];

userLimit.ConfigurationReset(); // Reset user limit configuration before configuring it
userLimit.ConfigurationBegin(); // Begin configuration

// Configure user limit
userLimit.TriggerType = Mpx.UserLimitTrigger.SingleCondition;
userLimit.ConditionType[0] = Mpx.UserLimitConditionType.SqNodeAnalogOut;
userLimit.ConditionNode[0] = controller.Axis[0].NodeNumber;
userLimit.ConditionChannel[0] = 0;
userLimit.ConditionLogic[0] = Mpx.UserLimitLogic.AbsLe;
userLimit.ConditionValue[0] = 2048; userLimit.GenerateEvent = true; userLimit.Action = Mpx.Action.None; userLimit.ConfigurationEnd(); // Writes configuration to the controller

 

 

See Also

ConditionAxis
ConditionPosition
ConditionPositionError
ConditionType
ConditionVelocity

Enumerations
UserLimitConditionType
UserLimitLogic



       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering